home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat2 / standard / setregid.z / setregid
Encoding:
Text File  |  1998-10-20  |  1.9 KB  |  67 lines

  1.  
  2.  
  3.  
  4. SSSSEEEETTTTRRRREEEEGGGGIIIIDDDD((((2222))))                                                        SSSSEEEETTTTRRRREEEEGGGGIIIIDDDD((((2222))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      setregid - set real and effective group ID
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ####iiiinnnncccclllluuuuddddeeee <<<<uuuunnnniiiissssttttdddd....hhhh>>>>
  13.  
  14.      iiiinnnntttt sssseeeettttrrrreeeeggggiiiidddd ((((ggggiiiidddd____tttt rrrrggggiiiidddd,,,, ggggiiiidddd____tttt eeeeggggiiiidddd))));;;;
  15.  
  16. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.      The real and effective group ID's of the current process are set to the
  18.      arguments.  Unprivileged users may change the real group ID to the
  19.      effective group ID and vice-versa; only the super-user may make other
  20.      changes.
  21.  
  22.      Supplying a value of -1 for either the real or effective group ID forces
  23.      the system to substitute the current ID in place of the -1 parameter.
  24.  
  25. RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
  26.      Upon successful completion, a value of 0 is returned.  Otherwise, a value
  27.      of -1 is returned and _e_r_r_n_o is set to indicate the error.
  28.  
  29. EEEERRRRRRRROOOORRRRSSSS
  30.      [EPERM]        The current process is not the super-user and a change
  31.                     other than changing the effective group-id to the real
  32.                     group-id was specified.
  33.  
  34. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  35.      getgid(2), setreuid(2), setgid(3).
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.